package com.jackson.engineeringtechnologyguide.conditional.condition;

/*
 * Author: JacksonCoder
 * FileName: SecondConditioin
 * Version: 1.0.0
 * Date: 2025/1/11
 */

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

public class SecondCondition implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return "true".equalsIgnoreCase(context.getEnvironment().getProperty("conditional.second.load"));
    }
}
